{% extends "layout.html" %}

{% block content %}
<div class="pb-2 mt-2 mb-4 border-bottom">
  <h3>Create</h3>
</div>
<form method='POST'>
  <input type='hidden'  name='_csrf'  value='{{_csrf}}' />
  <div class="form-group row">
    <label class="col-md-3 col-form-label font-weight-bold text-right" for="title">标题</label>
    <div class="col-md-7">
      title:{{thing.title}}
    </div>
  </div>
  <div class="form-group row">
    <label class="col-md-3 col-form-label font-weight-bold text-right" for="body">内容</label>
    <div class="col-md-7">
      <input class="form-control" type='text' name='body'  id='body'  placeholder='body' autofocus autocomplete='body' value="{{thing.body}}" required/>
    </div>
  </div>
  <div class="form-group row">
    <label class="col-md-3 col-form-label font-weight-bold text-right" for="url">链接</label>
    <div class="col-md-7">
      <input class="form-control" type='text' name='url'  id='url'  placeholder='url' autofocus autocomplete='url' value="{{thing.url}}" required/>
    </div>
  </div>
  <div class="form-group">
    <div class="offset-md-3 col-md-7 pl-2">
      <button class="col-md-3 btn btn-primary" type='submit'><i class="far fa-user fa-sm"></i> | 更新 </button>
    </div>
  </div>

</form>
{% endblock %}
